﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Noria.Web.MyMSDN.Models
{
    [Table("category")]
    internal class Category
    {
        public Category()
        {
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long CategoryId { get; set; }

        public string Name { get; set; }
        public bool Enabled { get; set; }

        public virtual ICollection<Family> Families { get; set; }
    }
}